-- GENERATED SPELL FOR [Warmage Yurias] --


function spell0_32375(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(17290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32375', 3000, 1)
end

function spell1_32375(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_32375', 0, 1)
end

function Sorts_32375(pUnit, Event)
local choix_sorts_32375 = math.random(0, 1)
if choix_sorts_32375 == 0 then
pUnit:RegisterEvent('spell0_32375', 1, 1)
end
if choix_sorts_32375 == 1 then
pUnit:RegisterEvent('spell1_32375', 1, 1)
end
end

function mob32375_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32375', math.random(1500, 3000), 1)
end

function mob32375_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32375_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32375_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32375, 1, 'mob32375_Action')
RegisterUnitEvent(32375, 2, 'mob32375_Leave')
RegisterUnitEvent(32375, 3, 'mob32375_Kill')
RegisterUnitEvent(32375, 4, 'mob32375_Die')
